package svc

import (
	"real-check/api/internal/config"
	"real-check/checkrpc/checkrpcclient"

	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config   config.Config
	CheckRpc checkrpcclient.Checkrpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:   c,
		CheckRpc: checkrpcclient.NewCheckrpc(zrpc.MustNewClient(c.CheckRpc)),
	}
}
